* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #2c3e50;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-weight: 600;
}

h2 {
    color: #34495e;
    margin-bottom: 1rem;
    font-weight: 500;
}

.upload-container {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.upload-section {
    flex: 1;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.file-upload {
    width: 100%;
}

.file-upload-box {
    border: 2px dashed #bdc3c7;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.file-upload-box:hover {
    border-color: #3498db;
    background-color: #f7f9fc;
}

.upload-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
}

.upload-text {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-info {
    margin-top: 1rem;
    padding: 0.5rem;
    font-size: 0.9rem;
    color: #2c3e50;
}

.action-container {
    text-align: center;
    margin-bottom: 2rem;
}

.compare-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.compare-btn:hover {
    background-color: #2980b9;
}

.compare-btn:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

.progress-container {
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #ecf0f1;
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    width: 0%;
    height: 100%;
    background-color: #2ecc71;
    transition: width 0.3s ease;
}

.progress-text {
    display: block;
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.result-container {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: none;
}

.result-content {
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.package-prefix-container {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.package-prefix-container label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
}

.package-input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e2e8f0;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.package-input:focus {
    outline: none;
    border-color: #3498db;
}

.package-hint {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* 类和方法变更样式 */
.class-changes {
    margin-top: 20px;
}

.class-change {
    border: 1px solid #ddd;
    margin-bottom: 10px;
    border-radius: 4px;
}

.class-header {
    background-color: #f5f5f5;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #ddd;
}

.class-name {
    font-weight: bold;
    color: #333;
}

.toggle-methods-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #666;
}

.toggle-methods-btn:hover {
    color: #000;
}

.method-list {
    padding: 10px;
}

.method-change {
    border: 1px solid #eee;
    margin: 5px 0;
    padding: 10px;
    border-radius: 4px;
}

.method-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.method-name {
    font-weight: bold;
    color: #2c3e50;
}

.method-signature {
    color: #666;
    font-family: monospace;
    font-size: 0.9em;
}

.method-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.change-type {
    background-color: #e8f4f8;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    color: #2980b9;
}

.analyze-chain-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
}

.analyze-chain-btn:hover {
    background-color: #2980b9;
}

.call-chain-container {
    margin-top: 10px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.call-chains {
    list-style: none;
    padding: 0;
    margin: 0;
}

.call-chain {
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chain-number {
    background-color: #34495e;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.8em;
}

.chain-path {
    font-family: monospace;
    color: #333;
}

.no-methods {
    color: #666;
    font-style: italic;
}

/* 添加文件拖拽效果 */
.file-upload-box.dragover {
    border-color: #3498db;
    background-color: #f7f9fc;
}

.diff-stats {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.diff-stats p {
    margin: 5px 0;
    font-size: 14px;
}

.diff-section {
    margin: 15px 0;
    padding: 15px;
    border-radius: 5px;
}

.diff-section h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
}

.diff-section ul {
    margin: 0;
    padding-left: 20px;
}

.diff-section li {
    margin: 5px 0;
    font-family: monospace;
}

.diff-section.added {
    background-color: #e6ffe6;
    border-left: 4px solid #28a745;
}

.diff-section.removed {
    background-color: #ffe6e6;
    border-left: 4px solid #dc3545;
}

.diff-section.modified {
    background-color: #e6f3ff;
    border-left: 4px solid #007bff;
}

.error {
    color: #dc3545;
    padding: 15px;
    background-color: #ffe6e6;
    border-radius: 5px;
    margin: 10px 0;
}

.method-changes {
    margin-top: 20px;
}

.method-change {
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #f8f9fa;
}

.method-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.method-name {
    font-family: monospace;
    font-size: 14px;
    color: #0366d6;
}

.analyze-chain-btn {
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 12px;
}

.analyze-chain-btn:hover {
    background-color: #218838;
}

.change-details {
    font-size: 13px;
    color: #666;
}

.call-chain-results {
    margin-top: 10px;
    padding: 10px;
    background-color: #f1f8ff;
    border-radius: 4px;
}

.call-chains {
    list-style: none;
    padding: 0;
    margin: 0;
}

.call-chain {
    padding: 5px 0;
    border-bottom: 1px solid #e1e4e8;
}

.call-chain:last-child {
    border-bottom: none;
}

.chain-number {
    color: #6a737d;
    margin-right: 10px;
    font-size: 12px;
}

.chain-path {
    font-family: monospace;
    font-size: 13px;
    color: #24292e;
}
